package org.labCompiladores.atividade1;

public class Main {
	
	public static void main(String[] args){
			
	//Programa a ser interpretado:
	
	Stm prog =
		new CompoundStm(new AssignStm("a",
							new OpExp(new NumExp(5),
										OpExp.Plus, new NumExp(3))),
		new CompoundStm(new AssignStm("b",
				new EseqExp(new PrintStm(new PairExpList(new IdExp("a"),
						new LastExpList(new OpExp(new IdExp("a"),
										OpExp.Minus,new NumExp(1))))),
	
		      new OpExp(new NumExp(10), OpExp.Times,
		    		  new IdExp("a")))),
		new PrintStm(new LastExpList(new IdExp("b")))));
	
	//Fim do programa a ser interpretado!!!
		
		Interpretador inter = new Interpretador();
		inter.interpStm(prog,null);
	
	}
}